package com.lmk.utils;

import java.util.Arrays;

public class work01 {
    public static void main(String[] args) {
        int[] a={2,11,7,5};
        int target=9;
        for (int i = 0; i <a.length ; i++) {
            for (int j =i+1; j <a.length ; j++) {
                if (a[j]+a[i]==target){
                    System.out.println(Arrays.toString(new int[]{i,j}));
                }
            }
            }
        }
    }



